import 'package:flutter/material.dart';
import 'package:osc/common/MyTextStyle.dart';
import 'package:osc/res/dimens.dart';

class OscTweetTextPortrait extends StatelessWidget {
  final String name;
  final Color color;

  const OscTweetTextPortrait({Key key, @required this.name, @required this.color}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      alignment: Alignment.center,
      decoration: BoxDecoration(
        color: color,
        borderRadius: BorderRadius.circular(Dimens.view_radius_size_biggest),
      ),
      child: Text(name.substring(0, 1), style: MyTextStyle.TWEET_SELECT_USER_NAME,),
    );
  }
}
